package com.jplus.service;

import com.jplus.VO.ResultVO;
import com.jplus.entity.Location;
import com.jplus.entity.Order;
import org.springframework.ui.Model;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Date;

public interface OrderService {

    ResultVO createOrder(Location location, String sessionId);

    /**
     * 新下单的消息会推送到附近1000米的范围
     * 有人接单后，会进入此方法
     * @param sessionId
     * @param businessId
     * @return
     */
    ResultVO acceptOrder(String sessionId, String businessId);

    ResultVO cancelOrder(String sessionId, String businessId);

    ResultVO showUnacceptedOrders(HttpServletRequest request);

    ResultVO getAllMyPublishedOrders(String sessionId);

    ResultVO getAllMyGotOrders(String sessionId);

    ResultVO pay(String payChannel, String escrowTradeNo, String businessId);

    ResultVO getUmbrellaTypeArray();
}
